home *** CD-ROM | disk | FTP | other *** search
- Path: overload.lbl.gov!news
- From: "E. J. Moler" <EJMOLER@LBL.GOV>
- Newsgroups: comp.lang.c++
- Subject: Re: Binary IOStreams?
- Date: 4 Jan 1996 17:06:26 GMT
- Organization: Advanced Light Source:Lawrence Berkeley National Lab
- Message-ID: <4ch1ei$63g@overload.lbl.gov>
- References: <DKny36.A0@BearRiver.com>
- NNTP-Posting-Host: athome.lbl.gov
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Macintosh; I; 68K)
- X-URL: news:DKny36.A0@BearRiver.com
-
- According to "The Draft Standard C++ Library" by P. J. Plauger,
- one can create streams with mode arguments that determine the
- characteristics of the stream.
- For example, to open a binary file with filename s,
-
- ifstream fin(s, ios::binary);
-
- There are other modes that can be or'd into the second argument that
- do things like append to an ofstream, etc.
-
- So the functionality that you want is probably already there.
-
- Eddie Moler
- EJMOLER@LBL.GOV
-
-
-